

package com.yz.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 获取列表
 */
@ApiModel(value = "获取列表表单")
public class GetListForm {
    @ApiModelProperty(value = "当前页码，从0开始")
    @NotBlank(message="页码不能为空")
    private int page;

    @ApiModelProperty(value = "每页条数")
    @NotBlank(message="每页条数不能为空")
    private int pageSize;

    public void setPage(int page) {
        this.page = page;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPage() {
        return page;
    }

    public int getPageSize() {
        return pageSize;
    }
}
